package com.ztk.threadbasic.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;


@RestController
@RequestMapping("/ztk")
public class TestController {

//    @Autowired
//    private Srv12000150 srv12000150Impl;

    @RequestMapping("/test")
    public Map<String, Object> test(@RequestBody Map<String, Object> map){
//        srv12000150Impl.srv12000150(map);
//        System.out.println(map);
        return map;
    }

    public static void main(String[] args) {
        /** 多级字典组别：全部 */
        String[] OPTION_GROUP_GRZHZT_ALL={"01","02","03","04","05","06","99"};
        /** 多级字典组别：销户-GRZHXH */
        String[] OPTION_GROUP_GRZHZT_GRZHXH={"03","04","05"};

        List<String> allGrzhzt = Arrays.asList(OPTION_GROUP_GRZHZT_ALL);
        List<String> xhGrzhzt = Arrays.asList(OPTION_GROUP_GRZHZT_GRZHXH);

        List<String> collect = allGrzhzt.stream().filter(grzhzt -> !xhGrzhzt.contains(grzhzt)).collect(Collectors.toList());
        System.out.println(collect);
    }
}
